package com.lst.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lst.tools.mybatis.entity.DeleteBaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 区表
 *
 * @author Frank
 * @date 2019-09-29 14:14:25
 * @version: V1.0
 */
@Data
@NoArgsConstructor
@TableName(value = "lst_address_area")
@ApiModel(value = "区表")
public class AddressArea extends DeleteBaseModel {

    public static final String IS_DELETE = "is_delete";
    public static final String CODE = "code";
    public static final String CITY_CODE = "city_code";
    public static final String NAME = "name";
    public static final String SHORT_NAME = "short_name";
    public static final String MERGER_NAME = "merger_name";
    public static final String ZIP_CODE = "zip_code";
    public static final String LONGITUDE = "longitude";
    public static final String LATITUDE = "latitude";
    public static final String SORT = "sort";

    @ApiModelProperty(name = "code", value = "区编号", dataType = "String")
    @TableField(value = CODE)
    private String code;
    @ApiModelProperty(name = "cityCode", value = "城市编号", dataType = "String")
    @TableField(value = CITY_CODE)
    private String cityCode;
    @ApiModelProperty(name = "name", value = "区名称", dataType = "String")
    @TableField(value = NAME)
    private String name;
    @ApiModelProperty(name = "shortName", value = "区简称", dataType = "String")
    @TableField(value = SHORT_NAME)
    private String shortName;
    @ApiModelProperty(name = "mergerName", value = "合并全称，逗号隔开", dataType = "String")
    @TableField(value = MERGER_NAME)
    private String mergerName;
    @ApiModelProperty(name = "zipCode", value = "邮政编码", dataType = "String")
    @TableField(value = ZIP_CODE)
    private String zipCode;
    @ApiModelProperty(name = "longitude", value = "经度", dataType = "Double")
    @TableField(value = LONGITUDE)
    private Double longitude;
    @ApiModelProperty(name = "latitude", value = "纬度", dataType = "Double")
    @TableField(value = LATITUDE)
    private Double latitude;
    @ApiModelProperty(name = "sort", value = "排序（越小排越前）", dataType = "Long")
    @TableField(value = SORT)
    private Long sort;
}